package org.jeecg.modules.api;

import org.jeecg.common.constant.ServiceNameConstants;
import org.jeecg.modules.api.fallback.DemoFallback;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 测试本地打包和公共打包方式
 */
@Component
@FeignClient(contextId = "demoApi", value = ServiceNameConstants.DEMO_SERVICE, path = "demo", fallback = DemoFallback.class)
@ConditionalOnMissingClass("org.jeecg.modules.controller.DemoController")
public interface DemoApi {
    @GetMapping("getOne")
    String getOne();
}
